package com.thp.strategy.examplePro1;

import org.junit.Test;

/**
 * 调用方法
 * @author Tommy
 *
 */
public class Client {
	
	public static void main(String[] args) {
		Player player = new Player();
		player.buy(5000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
        player.buy(12000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
        player.buy(12000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
        player.buy(12000D);
        System.out.println("玩家需要付钱：" + player.calLastAmount());
	}
	
	
	@Test
	public void testGetResource() {
		System.out.println(Client.class.getResource(""));
		System.out.println(Client.class.getResource("/"));
		
		System.out.println("-------------------");
		System.out.println(Test.class.getClassLoader().getResource(""));
		System.out.println(Test.class.getClassLoader().getResource("/"));
		// System.out.println(Test.class.getClassLoader().getResourceAsStream(""));
		
	}
}
